<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-type" content="text/html; charset=utf-8">
		<title>jQuery datePicker custom multi month example 2</title>

        <!-- jQuery -->
		<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
        
        <!-- required plugins -->
		<script type="text/javascript" src="scripts/date.js"></script>
		<!--[if IE]><script type="text/javascript" src="scripts/jquery.bgiframe.min.js"></script><![endif]-->
        
        <!-- jquery.datePicker.js -->
		<script type="text/javascript" src="scripts/jquery.datePicker.js"></script>
		<script type="text/javascript" src="scripts/jquery.datePickerMultiMonth.js"></script>
        
        <!-- datePicker required styles -->
		<link rel="stylesheet" type="text/css" media="screen" href="styles/datePicker.css">
		
        <!-- page specific styles -->
		<link rel="stylesheet" type="text/css" media="screen" href="styles/demo.css">
        
        <!-- page specific scripts -->
		<script type="text/javascript" charset="utf-8">
            $(function()
            {
				$('#multimonth').datePickerMultiMonth(
					{
						numMonths: 4,
						inline: true
					}
				).bind(
					'dpMonthChanged',
					function(event, displayedMonth, displayedYear)
					{
						// uncomment if you have firebug and want to confirm this works as expected...
						//console.log('dpMonthChanged', arguments);
					}
				).bind(
					'dateSelected',
					function(event, date, $td, status)
					{
						// uncomment if you have firebug and want to confirm this works as expected...
						//console.log('dateSelected', arguments);
					}
				);

				$('#getSelected').bind(
					'click',
					function(e)
					{
						alert($('#multimonth').dpmmGetSelected());
						return false;
					}
				);
            });
		</script>

		<style type="text/css">
		#multimonth {
			border: 2px solid #000;
			overflow: auto;
			float: left;
		}
		.dp-applied {
			float: left;
		}
		table.jCalendar {
			border: none;
		}
		.dp-popup-inline {
			height: 160px;
		}
		</style>
		
	</head>
	<body>
        <div id="container">
            <h1>jquery.datePicker multi month plugin plugin example: showing how you can use the datePickerMultiMonth plugin</h1>
			<p><a href="index.html">&lt; date picker home</a></p>
            <p>
                This page illustrates the use of the "plugin plugin" <a href="scripts/jquery.datePickerMultiMonth.js">datePickerMultiMonth</a>.
				It is a plugin which builds on the functionality of the date picker to allow you to have datePickers which display multiple 
				months at a time. The construction of the multimonth plugin illustrates the flexiblility of the datePicker and how you can 
				add functionality without increasing the filesize of the base plugin.
            </p>
			<p>
				Note that the relevant events are passed through to this page. For dpMonthChanged the month and year passed correspond to the
				first month out of the ones shown.
			</p>
			<p>
				You can also call dpmmGetSelected on the datePickerMultiMonth which is the same as dpGetSelected on a normal date picker. <a href="#" id="getSelected">Example</a>.
			</p>
			<form name="chooseDateForm" id="chooseDateForm" action="#">
				<div id="multimonth">This will be replaced with the multimonth select</div>
			</form>
			<p style="clear: left">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec turpis nisi, hendrerit et, mattis sit amet, tincidunt vel, nisi. Nullam hendrerit. Mauris dictum dictum neque. Nullam nisi eros, consectetur in, consectetur id, venenatis vel, turpis. Morbi porta scelerisque dui. Vivamus cursus odio at leo porttitor tincidunt. Nullam dolor mi, facilisis eget, fermentum nec, faucibus sed, ante. Aliquam nec libero. Integer nulla metus, lobortis eget, mattis eu, facilisis non, magna. Pellentesque ac sem cursus tortor tempor vehicula.</p>
			<p>Fusce neque. Donec erat magna, rhoncus in, vehicula eget, facilisis sit amet, erat. Integer leo nibh, pharetra ut, aliquam eu, condimentum et, lorem. Nulla ante. Nunc ut magna. Phasellus viverra ornare ante. Sed lacinia velit ut turpis. Suspendisse a purus. Fusce nec sapien. Vivamus vitae lorem vitae lacus congue pulvinar. In vulputate justo vitae est. Pellentesque consectetur, dui ac semper dignissim, ligula nibh gravida libero, hendrerit pretium metus nisl eu diam. Donec tellus arcu, commodo sit amet, lacinia eu, luctus quis, augue. In dui. Mauris id erat. Suspendisse libero lorem, luctus at, vestibulum et, pharetra et, tortor. Aliquam semper tempor lorem. Vestibulum libero augue, vehicula faucibus, porttitor sit amet, tempus non, ante.</p>
        </div>
	</body>
</html>